import http from "@/utils/http"

/**
 * 获取验证码
 * @param {*} phone 手机号
 */
export const requestPhoneCode = (phone) => {
  return http.get(`/applet/login/sendMessage?phone=${phone}`)
}

/**
 * 根据手机号验证码登录
 * @param {} form 
 */
export const login = (form) =>{
  return http.post('/applet/login/phoneLogin',form)
}
